#!/bin/sh
service="shailmMemberService"

tomcatService="/var/tomcat/tomcat-7/webapps/$service"
sharedLib="/var/tomcat/tomcat-7/shared/lib/"

echo "rm -rf $service"
rm -rf $service

echo "unzip ... ..."
echo "unzip $service.war -d $service > unzipTmp.txt"
unzip "$service.war" -d $service > unzipTmp.txt

echo "mv $service/WEB-INF/lib/* $sharedLib"
`mv $service/WEB-INF/lib/* $sharedLib`

echo "rm -rf $tomcatService"
rm -rf $tomcatService

echo "cp -r $service $tomcatService"
cp -r $service $tomcatService

